#include "mainwindow.h"
#include "ui_mainwindow.h"
#include"menu.h"
#include "mystruct.h"  //map/header.h
#include <QPixmap>
#include <QPainter>
#include <QMessageBox>
#include <QMouseEvent>
#include <QCloseEvent>
#include <QDialog>
#include <QRegExpValidator>
#include <QDebug>


MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);
}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::paintEvent(QPaintEvent *){
    QPainter painter(this);
    QPixmap pix;
    pix.load(":/new/prefix1/bkt.png");
    painter.drawPixmap(0,0,this->width(),this->height(),pix);
}

void MainWindow::on_visitorButton_clicked()
{

    Menu *m =new Menu();
    this->hide();
    m->show();
}

